package com.icinfo.wanandroid.core.http;

import com.icinfo.wanandroid.core.bean.BaseResponse;
import com.icinfo.wanandroid.core.bean.main.collect.FeedArticleListData;
import com.icinfo.wanandroid.core.bean.main.login.LoginData;

import io.reactivex.Observable;
import retrofit2.http.GET;

/**
 * Author: 胡高建
 * Comment: //TODO
 * Date: 2019-07-24 09:06
 */
public interface HttpHelper {
    /**
     * 获取feed文章列表
     *
     * @param pageNum 页数
     * @return feed文章列表数据
     */
    Observable<BaseResponse<FeedArticleListData>>getFeedArticleList(int pageNum);


    /**
     * 退出登录
     * http://www.wanandroid.com/user/logout/json
     */
    @GET("user/logout/json")
    Observable<BaseResponse<LoginData>> logout();
}
